package com.fullertontech.framework.jdbc;

import javax.sql.DataSource;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

public class DynamicDataSource extends AbstractRoutingDataSource{
	
	@Override
	protected Object determineCurrentLookupKey() {
		return DataSourceUtils.getDataSourceName();
	}
	@Override
	public DataSource determineTargetDataSource() {
		return super.determineTargetDataSource();
	}
}
